<?php 

include_once('paypal.inc.php');
$paypal = new paypal();

//optionally disable page caching by browsers
$paypal->headers_nocache(); //should be called before any output

//set the price
$paypal->price='33';

$paypal->ipn='http://gameboy90.gicp.net/projectX/ipn.webbuy.php'; //full web address to IPN script

//enable recurring payment(subscription) for every number of years
$paypal->recurring_year($r);

//OR every number of months
$paypal->recurring_month($r);

//OR every number of days
$paypal->recurring_day($r);

//OR one-time payment
$paypal->enable_payment();

//change currency code
$paypal->add('currency_code','GBP');

//your paypal email address
$paypal->add('business',PAYPAL_MAIL);

$paypal->add('item_name','Product name');
$paypal->add('item_number','Unique id');
$paypal->add('quantity',1);
$paypal->add('return',SITE_URL);
$paypal->add('cancel_return',SITE_URL);
$paypal->output_form();